home *** CD-ROM | disk | FTP | other *** search
/ Light ROM 1 / LIGHT-ROM 1 (Amiga Library Services)(1994).iso / ffdisks / d927.lha / Telnet / src / makefile < prev    next >
Makefile  |  1993-10-07  |  6KB  |  193 lines

  1. #
  2. # Copyright (c) 1987 Regents of the University of California.
  3. # All rights reserved.
  4. #
  5. # Redistribution and use in source and binary forms are permitted
  6. # provided that the above copyright notice and this paragraph are
  7. # duplicated in all such forms and that any documentation,
  8. # advertising materials, and other materials related to such
  9. # distribution and use acknowledge that the software was developed
  10. # by the University of California, Berkeley.  The name of the
  11. # University may not be used to endorse or promote products derived
  12. # from this software without specific prior written permission.
  13. # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  14. # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  15. # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  16. #
  17. #    @(#)Makefile    1.17 (Berkeley) 11/14/89
  18. #
  19.  
  20. #
  21. # TERMCAP    Define this if your system is termcap based,
  22. #        otherwise a terminfo based system is assumed.
  23. #
  24. # SRCRT        Includes code to allow you to specify source routes.
  25. #        Format is:
  26. #            [!]@hop1@hop2...[@|:]dst
  27. #        Leading ! means strict source route.
  28. #
  29. # SYSV_TERMIO    Define this if you have System V termio structures,
  30. #        This code works under Cray UNICOS.
  31. #
  32. # NO_CC_T    Define this if your termio.h file does not have
  33. #        a typedef for cc_t.
  34. #
  35. # USE_TERMIO    Define this if you have the POSIX termios structures.
  36. #        This code works under the BSD 4.4 terminal driver.
  37. #
  38. # KLUDGELINEMODE Define this to get the kludged up version of linemode
  39. #        that was in 4.3BSD.  This is a good thing to have
  40. #        around for talking to older systems.
  41. #
  42. # NOSTRNCASECMP    Define this if you do not have strncasecmp() in
  43. #        your C libarary.
  44. #
  45. # NO_STRDUP    Define this if you do not have the strdup() in
  46. #        your C library.
  47. #
  48. # strrchr=rindex Define this if you do not have strrchr() in your
  49. #        C libaray (but you do have rindex...)
  50. #
  51. # HAS_IP_TOS    Define this if you have the setsockopt() option for
  52. #        setting the IP Type of Service bit (IP_TOS) and you
  53. #        have the gettosbyname() function.
  54. #
  55. # NEED_GETTOS    Define this if you have the setsockopt() option for
  56. #        setting the IP Type Of Service bits, but you don't
  57. #        have the gettosbyname() function.  If you define
  58. #        this, you don't need to define HAS_IP_TOS.
  59. #
  60.  
  61. # If you don't have getopt() in your C library, then add:
  62. #    GETOPT_OBJ=getopt.o
  63. #    GETOPT_SRC=getopt.c
  64.  
  65.  
  66. #
  67. # LIBS should be set to any libraries that need to be included,
  68. # like the termcap or terminfo library.  LIBPATH is the paths
  69. # to these libraries, for dependencies.
  70. #
  71.  
  72. all:
  73.     @echo "you must specify what type of system you are on,"
  74.     @echo "or modify the makefile for your system."
  75.     @echo "Known system types are:"
  76.     @echo " 4.4bsd 4.3reno 4.3tahoe 4.3bsd unicos5.0 unicos5.1 unicos6.0"
  77.     @echo " unicos6.1 sun3.5 sun4.0 sun4.0.3c sun4.1 dynix3.0.12 "
  78.     @echo " dynix3.0.17 ultrix3.1 ultrix4.0 next1.0"
  79.  
  80. amiga:
  81.     smake -f Makefile.generic telnet \
  82. "DEFINES=DEFINE=TERMCAP DEFINE=NO_CC_T DEFINE=NOSTRNCASECMP DEFINE=AMI_TCP" \
  83. GETOPT_OBJ=getopt.o GETOPT_SRC=getopt.c \
  84. LIBPATH=
  85. #    make -f Makefile.generic telnet \
  86. #"DEFINES=-dTERMCAP -dNO_CC_T -dNOSTRNCASECMP -dAS225" \
  87. #GETOPT_OBJ=getopt.o GETOPT_SRC=getopt.c \
  88. #LIBPATH=
  89.  
  90. 4.4bsd 4.3reno:
  91.     make -f Makefile.generic ${WHAT} \
  92.         LIBS="-ltermcap" \
  93.         LIBPATH="/lib/libc.a /usr/lib/libtermcap.a" \
  94.         DEST=${DESTDIR}/usr/bin \
  95.         DEFINES="-DTERMCAP -DSRCRT -DKLUDGELINEMODE -DUSE_TERMIO"
  96.  
  97. 4.3bsd 4.3tahoe:
  98.     make -f Makefile.generic ${WHAT} \
  99.         LIBS="-ltermcap" \
  100.         LIBPATH="/lib/libc.a /usr/lib/libtermcap.a" \
  101.         DEST=${DESTDIR}/usr/bin \
  102.         GETOPT_OBJ=getopt.o GETOPT_SRC=getopt.c \
  103.         DEFINES="-DTERMCAP -DSRCRT -DKLUDGELINEMODE -DNO_STRDUP"
  104.  
  105. unicos5.0 unicos5.1:
  106.     make -f Makefile.generic ${WHAT} \
  107.         LIBS="-lcurses -lnet" \
  108.         LIBPATH="/lib/libc.a /usr/lib/libcurses.a" \
  109.         DEST=${DESTDIR}/usr/ucb \
  110.         DEFINES="-Dvfork=fork -Dsignal=sigset -DSRCRT \
  111.             -DKLUDGELINEMODE -DSYSV_TERMIO -DNO_CC_T"
  112.  
  113. unicos6.0 unicos6.1:
  114.     make -f Makefile.generic ${WHAT} \
  115.         LIBS="-lcurses -lnet" \
  116.         LIBPATH="/lib/libc.a /usr/lib/libcurses.a" \
  117.         DEST=${DESTDIR}/usr/ucb \
  118.         DEFINES="-Dvfork=fork -Dsignal=bsdsignal -DSRCRT \
  119.             -DKLUDGELINEMODE -DUSE_TERMIO -DHAS_IP_TOS"
  120.  
  121. sun3.5:
  122.     make -f Makefile.generic ${WHAT} \
  123.         LIBS=-ltermcap \
  124.         LIBPATH="/lib/libc.a /usr/lib/libtermcap.a" \
  125.         DEST=${DESTDIR}/usr/ucb \
  126.         DEFINES="-DNO_STRDUP -DTERMCAP -DSRCRT -DKLUDGELINEMODE \
  127.             -DNOSTRNCASECMP"
  128. sun4.0.3c sun4.0:
  129.     make -f Makefile.generic ${WHAT} \
  130.         LIBS=-ltermcap \
  131.         LIBPATH="/lib/libc.a /usr/lib/libtermcap.a" \
  132.         DEST=${DESTDIR}/usr/ucb \
  133.         DEFINES="-DFILIO_H -DTERMCAP -DUSE_TERMIO -DNO_CC_T \
  134.             -DNOSTRNCASECMP -DSRCRT -DKLUDGELINEMODE"
  135.  
  136. sun4.1:
  137.     make -f Makefile.generic ${WHAT} \
  138.         LIBS=-ltermcap \
  139.         LIBPATH="/lib/libc.a /usr/lib/libtermcap.a" \
  140.         DEST=${DESTDIR}/usr/ucb \
  141.         DEFINES="-DFILIO_H -DTERMCAP -DUSE_TERMIO -DSRCRT \
  142.             -DKLUDGELINEMODE"
  143.  
  144. dynix3.0.12:
  145.     make -f Makefile.generic ${WHAT} \
  146.         LIBS=-ltermcap \
  147.         LIBPATH="/lib/libc.a /usr/lib/libtermcap.a" \
  148.         DEST=${DESTDIR}/usr/ucb \
  149.         GETOPT_OBJ=getopt.o GETOPT_SRC=getopt.c \
  150.         DEFINES="-DTERMCAP -DSRCRT -DKLUDGELINEMODE -Dstrrchr=rindex \
  151.             -DNOSTRNCASECMP -DNO_STRDUP"
  152.  
  153. dynix3.0.17:
  154.     make -f Makefile.generic ${WHAT} \
  155.         LIBS=-ltermcap \
  156.         LIBPATH="/lib/libc.a /usr/lib/libtermcap.a" \
  157.         DEST=${DESTDIR}/usr/ucb \
  158.         GETOPT_OBJ=getopt.o GETOPT_SRC=getopt.c \
  159.         DEFINES="-DTERMCAP -DSRCRT -DKLUDGELINEMODE -Dstrrchr=rindex \
  160.             -DNO_STRDUP"
  161.  
  162. ultrix3.1:
  163.     make -f Makefile.generic ${WHAT} \
  164.         LIBS=-ltermcap \
  165.         LIBPATH="/lib/libc.a /usr/lib/libtermcap.a" \
  166.         DEST=${DESTDIR}/usr/ucb \
  167.         DEFINES="-DTERMCAP -DSRCRT -DKLUDGELINEMODE -DNO_STRDUP"
  168.  
  169. ultrix4.0:
  170.     make -f Makefile.generic ${WHAT} \
  171.         LIBS=-ltermcap \
  172.         LIBPATH="/lib/libc.a /usr/lib/libtermcap.a" \
  173.         DEST=${DESTDIR}/usr/ucb \
  174.         DEFINES="-DUSE_TERMIO -DTERMCAP -DSRCRT \
  175.                 -DKLUDGELINEMODE -DNO_STRDUP"
  176. next1.0:
  177.     make -f Makefile.generic ${WHAT} \
  178.         LIBS="-ltermcap -lsys_s" \
  179.         LIBPATH="/lib/libc.a /lib/libsys_s.a /usr/lib/libtermcap.a" \
  180.         DEST=${DESTDIR}/usr/ucb \
  181.         DEFINES="-bsd -DTERMCAP -DSRCRT -DKLUDGELINEMODE \
  182.             -DNOSTRNCASECMP"
  183.  
  184.  
  185. clean cleandir lint tags depend:
  186.     @make -f Makefile.generic $@
  187.  
  188. clist:
  189.     @make -f Makefile.generic clist
  190.  
  191. hclist:
  192.     @make -f Makefile.generic hclist
  193.